import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(url, ...arg)

export default {
	//分页查询会员
	queryList(data) {
		return request('/mb/' + data.pageNo + '/' + data.pageSize + '/listMember.do', {
			keyword: data.keyword,
			status: data.status
		}, "post")
	},
	//添加会员
	addMember(data){
		return request('/mb/addMember.do',data,"post")
	},
	//修改会员
	editMember(data){
		return request('/mb/editMember.do',data,"post")
	},
	//查看会员
	getMember(id){
		return request('/mb/'+id+'/getMember.do',null,"get")
	},
	//删除会员
	delMember(id){
		return request('/mb/'+id+'/delMember.do',null,"get")
	},
	//启用会员
	startMember(id){
		return request('/mb/'+id+'/startMember.do',null,"get")
	},
	//禁用
	disMember(id){
		return request('/mb/'+id+'/disMember.do',null,"get")
	},
	//民族字典
	nationList(){
		return request('/nft/NATION/showDict.do', null, "post")
	},
	//文化程度
	cultureLevelList(){
		return request('/nft/CULTURE_LEVEL/showDict.do', null, "post")
	},
	//政治面貌
	politicsList(){
		return request('/nft/POLITICS/showDict.do', null, "post")
	},
	//政治面貌
	degreeList(){
		return request('/nft/DEGREE/showDict.do', null, "post")
	},



}
